#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <fcntl.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>

#include <ncurses.h>
#include <csapp.h>


#define MESSAGE_SIZE 300
#define TRANSACTION_SIZE 300

#define SERVER_ADDRESS "192.168.1.11"
#define MAX_CLIENT 64511

//#######################################
//#
//# Definition des structures
//#
struct Info_FIFO_Transaction
{				
	unsigned int pid_client; 		
	char transaction[TRANSACTION_SIZE];					
};	

struct Server_Response
{	
	char ack;				
	char message[MESSAGE_SIZE];					
};							 
	
//#######################################
//#
//# Definition des fonctions
//#

int bindAvailablePort(int serverFD, struct sockaddr_in* ptrServerAddress, int serverLength);

